package cn.com.infostrategy.ui.report;

import java.util.HashMap;

import cn.com.infostrategy.ui.common.UIUtil;

public class ReportUIUtil {

	public synchronized static void openBillCardHtmlFrame(String _title, String _templetCode, String _sql) {
		try {
			HashMap parMap = new HashMap(); //
			parMap.put("calltype", "getBillCardHtml"); //
			parMap.put("templetCode", _templetCode); //
			parMap.put("sql", _sql);
			UIUtil.openBillHtmlFrame(_title, "cn.com.infostrategy.bs.report.ReportWebCallBean", parMap); //
		} catch (Exception e) {
			e.printStackTrace(); //
		}
	}

	public synchronized static void openBillListHtmlFrame(String _title, String _templetCode, String _sql) {
		try {
			HashMap parMap = new HashMap(); //
			parMap.put("calltype", "getBillListHtml"); //
			parMap.put("templetCode", _templetCode); //
			parMap.put("sql", _sql);
			UIUtil.openBillHtmlFrame(_title, "cn.com.infostrategy.bs.report.ReportWebCallBean", parMap); //
		} catch (Exception e) {
			e.printStackTrace(); //
		}
	}

	public synchronized static void openBillTreeHtmlFrame(String _title, String _templetCode, String _sql) {
		try {
			HashMap parMap = new HashMap(); //
			parMap.put("calltype", "getBillTreeHtml"); //
			parMap.put("templetCode", _templetCode); //
			parMap.put("sql", _sql);
			UIUtil.openBillHtmlFrame(_title, "cn.com.infostrategy.bs.report.ReportWebCallBean", parMap); //
		} catch (Exception e) {
			e.printStackTrace(); //
		}
	}

	public synchronized static void openMultiHtmlFrame(String _title, String[][] _multiSQLs) {
		try {
			HashMap parMap = new HashMap(); //
			parMap.put("calltype", "getMultiHtml"); //
			parMap.put("multisqls", _multiSQLs);
			UIUtil.openBillHtmlFrame(_title, "cn.com.infostrategy.bs.report.ReportWebCallBean", parMap); //
		} catch (Exception e) {
			e.printStackTrace(); //
		}
	}

}
